<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/page/inc/taglib.jsp" %>
<div class="pageContent">
    <form method="post" action="${pageContext.request.contextPath}/system/merchantEmployees/updateRole" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageFormContent" layoutH="56">
            <!-- 关闭窗口 -->
            <input type="hidden" name="callbackType" value="closeCurrent"/>
            <!-- 隐藏表单 -->
            <!-- 授权到那个用户的id -->
            <input type="hidden" name="id" value="${requestScope.id}"/>
           <%--  <p>
                <label>角色：</label>
                <select name=rid>
                    <option value="">请选择</option>
                    <c:forEach items="${requestScope.tpRoles }" var="tpRole">
                        <option value="${tpRole.id }" ${tpRole.id==requestScope.rid ? 'selected' : '' }>${tpRole.name }</option>
                    </c:forEach>
                </select>
            </p> --%>
            <div class="pageFormContent" layoutH="98">
           		<c:forEach items="${requestScope.roles }" var="role">
					<label><input type="checkbox" name="rid" value="${role.id }" <c:if test="${fn:contains(requestScope.rid,role.id)}">checked</c:if>  />${role.name }</label>
				</c:forEach>
			</div>
        </div>
        <div class="formBar">
            <ul>
                <!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">保存</button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">取消</button>
                        </div>
					</div>
                </li>
            </ul>
        </div>
    </form>
</div>
